package cn.zyzpp.service.job;

import cn.zyzpp.entity.job.NewJob;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;

import java.util.List;

public interface JobService {
    void save(NewJob job, int uid);

    void delect(int id);

    void updata(NewJob job);

    List<NewJob> queryAll(int uid);

    NewJob query(int id);

    Page<NewJob> queryByPageNoClose(int page);

    Page<NewJob> queryByPage(int page, int limit);

    Page<NewJob> queryHotByPage(int page);

    Page<NewJob> queryByNameAndSortAndPage(String name,String position, int page);

    Page<NewJob> queryByNameAndPage(String name, int page);

    void updataCount(int id);

    void updataOrUse(int id, int or);

    int updataOrUse(int id);
}
